package com.gt.quality.system.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.io.Serializable;

@Data
@Schema(title = "用户信息", description = "注册用户主体")
public class SaveUserInfo implements Serializable {

    /**
     * 用户账号
     */
    @Schema(title = "用户登录账号",description = "用户登录账号")
    private String userName;

    /**
     * 用户昵称
     */
    @Schema(title = "用户昵称",description = "用户名称")
    private String nickName;

    /**
     * 用户类型 sys_user
     */
    @Schema(title = "用户类型",description = "用户类型（sys_user:系统用户）")
    private String userType;

    /**
     * 用户邮箱
     */
    @Schema(title = "email",description = "用户邮箱")
    private String email;

    /**
     * Description:  手机号码
     */
    @Schema(title = "手机号码",description = "手机号码")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phoneNumber;

    /**
     * 性别 0男 1女 2未知
     */
    @Schema(title = "性别",description = "用户性别（0男 1女 2未知）")
    private String sex;

    /**
     * Description:  头像地址
     */
    @Schema(title = "头像地址",description = "头像地址")
    private Long avatar;

    /**
     * 密码
     */
    @Schema(title = "password",description = "密码")
    private String password;


    /**
     * Description:  备注
     */
    @Schema(title = "备注",description = "备注")
    private String remark;


    /**
     * 组织
     */
    @Schema(title = "组织",description = "组织")
    private String deptId;
}
